package gui.swing;

import javax.swing.*;
import java.awt.*;

public class TestComboBox extends JFrame {

    public TestComboBox(){

        Container contentPane = this.getContentPane();
        JComboBox jComboBox = new JComboBox();

        jComboBox.addItem("xx");
        jComboBox.addItem("yy");
        jComboBox.addItem("zz");
        jComboBox.addItem("tt");

        contentPane.add(jComboBox);

        this.setVisible(true);
        this.setBounds(100,100,400,400);
        this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    }

    public static void main(String[] args) {
        new TestComboBox();
    }
}
